package com.michael.aop;

import com.michael.aop.annotation.AnnotationInfo;
import com.michael.aop.annotation.Log;


@AnnotationInfo(name = "PointcutAspectJTest")
public class C1Driver implements Driver{
    @Log
    public void drive(){
        System.out.println("******the C1 driver drive the car in the road !*******");
    }

    public String getName() {
        System.out.println("******michael******");
        return "******michael******";
    }

    public Passenger passenger(Passenger passenger) {
        System.out.println("****** passenger.getName() = " + passenger.getName()+"******");
        return passenger;
    }
}
